﻿using Swimj.CommonLib.Attributes;
using Swimj.CommonLib.Base;

namespace Admin.CommonLib.Models.Role
{
    public class RoleTemplateResponseDto : ImportTemplateResponseDto
    {
        [ExcelColumn(DisplayText = "角色编码", Required = true)]
        public string? RoleCode { get; set; }

        [ExcelColumn(DisplayText = "角色名称", Required = true)]
        public string? RoleName { get; set; }

        [ExcelColumn(DisplayText = "描述")] public string? Description { get; set; }
    }

    public class RoleImportResponseDto : RoleTemplateResponseDto
    {
        public RoleImportResponseDto()
        {
        
        }

        public RoleImportResponseDto(RoleTemplateResponseDto baseResponseDto)
        {
            this.Row = baseResponseDto.Row;
            this.RoleCode = baseResponseDto.RoleCode;
            this.RoleName = baseResponseDto.RoleName;
            this.Description = baseResponseDto.Description;
        }
    
        public string? ErrorMessage { get; set; }
    }
}